#include <REGX52.H>

typedef unsigned char uchar;
typedef unsigned int uint;
sbit led1 = P2^0;


void delay_ms(unsigned char m)
{
	uchar x;
	uchar y;
	for(x=0;x<m;x++){
		for(y=0;y<120;y++)
		{}
	}
		
}

void main()
{

	led1 = 0;
	delay_ms(1000);
	led1 = 1;
	delay_ms(1000);
	led1 = 0;
}
